package com.car.util;

import java.util.Comparator;
import java.util.Locale;

import com.car.entity.CarLogo;

public class PinyinComparator implements Comparator<CarLogo> {

	@Override
	public int compare(CarLogo lhs, CarLogo rhs) {
		String ls =lhs.nameSpell.toUpperCase(Locale.CHINA).charAt(0)+"";
		String rs =rhs.nameSpell.toUpperCase(Locale.CHINA).charAt(0)+"";
		return ls.compareTo(rs);
	}

}
